/* login-register.css - 登录和注册页面特定样式 */

/* 认证卡片样式 */
.auth-card {
  background-color: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  margin: 2rem auto;
}

.auth-card__header {
  padding: 1.5rem;
  background-color: var(--color-primary);
  color: white;
  text-align: center;
}

.auth-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-card__subtitle {
  font-size: 0.875rem;
  opacity: 0.8;
}

.auth-card__body {
  padding: 2rem;
}

/* 表单样式 */
.auth-form__group {
  margin-bottom: 1.5rem;
}

.auth-form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.auth-form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.auth-form__input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(45, 106, 79, 0.2);
  outline: none;
}

.auth-form__error {
  color: var(--color-danger);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.auth-form__submit {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.auth-form__submit:hover {
  background-color: var(--color-primary);
  opacity: 0.9;
}

.auth-form__submit:active {
  transform: scale(0.98);
}

/* 分隔线 */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.5);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
}

.auth-divider__text {
  padding: 0 1rem;
}

/* 社交登录按钮 */
.social-login {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.social-login__button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.social-login__button:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* 切换登录/注册链接 */
.auth-switch {
  text-align: center;
  font-size: 0.875rem;
  margin-top: 1.5rem;
  color: rgba(0, 0, 0, 0.6);
}

.auth-switch__link {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
}

.auth-switch__link:hover {
  text-decoration: underline;
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card {
  animation: fadeInUp 0.5s ease forwards;
}
